package com.peas.platform.module.icims.expenditure.setting.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("收支系统配置")
public class ExpenditureSettingsVo extends BaseVo {

    @Comment(value = "配置类型", enumType = "ExpenditureSettingsType")
    @ApiModelProperty(value = "配置类型", notes = "枚举取值:ExpenditureSettingsType")
    @NotBlank(message = "配置类型不能为空")
    @Size(max = 20, message = "配置类型不能超过20个字符")
    private String settingsType;

    @Comment(value = "配置说明")
    @ApiModelProperty(value = "配置说明")
    @Size(max = 1000, message = "配置说明不能超过1000个字符")
    private String settingsDesc;

    // 1启用，0不启用
    @Comment(value = "配置值", enumType = "CommonYesNo")
    @ApiModelProperty(value = "配置值", notes = "枚举取值:CommonYesNo")
    @NotBlank(message = "配置值不能为空")
    @Size(max = 20, message = "配置值不能超过20个字符")
    private String settingsValue;

    @Comment(value = "排序权重")
    @ApiModelProperty(value = "排序权重")
    private Integer weight;

}
